<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<!-- 모바일 기기에 확대/축소 기능을 끄는 역할. native 어플 느낌 -->
<meta name="viewport" content="width=device-width,initial-scale=1.0, maximum-scale=1.0,user-scalable=no">
<link rel="stylesheet" href="./css/bootstrap.min.css" type="text/css">
<link rel="stylesheet" href="./css/bootstrap-theme.min.css" type="text/css">
<link rel="stylesheet" href="./css/adminMember.css" type="text/css">
<script type="text/javascript" src="./js/jquery-1.11.1.js"></script>
<script type="text/javascript" src="./js/bootstrap.min.js"></script>
<script type="text/javascript">
	function adminMember(id){
		
		if(id!=null||id==''){
			alert('탈퇴완료');
			location.href='/SomeTalk/adminBlackDelete.do?id='+id+'&num='+num;
			self.close();
		}
	}
</script>
<title>회원상세정보</title>
</head>
<body>
	<div id="adminMember">
		<div id="myReportFormContainer" class="form-group col-lg-12 col-md-12 col-sm-12 col-xs-12 ">
			<div id="myReportForm" class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
				<div class="reportBody form-group col-lg-12"> 
					<label for="id">아이디</label>
					<div id="id">${memberCommand.id }
						<c:if test="${memberCommand.grade==9 }">
							<span class="deleteMember">&nbsp;&nbsp;탈퇴한 회원</span>
						</c:if>
					</div>
				</div>
				<div class="reportBody form-group col-lg-12">
					<label for="gender">성별</label>
					<div id="gender">${memberCommand.gender}</div>
				</div>
				<div class="reportBody form-group col-lg-12">
					<label for="grade">회원등급 (상태)</label>
					<div id="grade">
						<c:if test="${memberCommand.grade == 0}">
							0 (운영자)
						</c:if>
						<c:if test="${memberCommand.grade == 1}">
							1 (정상 회원)
						</c:if>
						<c:if test="${memberCommand.grade == 8}">
						<font color="red">8 (정지 회원)</font>
						</c:if>
						<c:if test="${memberCommand.grade == 9}">
							9 (탈퇴회원)
						</c:if>
					</div>
				</div>
				<div class="reportBody form-group col-lg-12">
					<label for="reg_date">가입일자</label>
					<div id="reg_date">${memberCommand.reg_date}</div>
				</div>
				<div class="reportBody form-group col-lg-12">
					<label for="name">이름</label>
					<div id="name">${memberCommand.name}</div>
				</div>
				<div class="reportBody form-group col-lg-12">
					<label for="zipcode">주소</label>
					<div id="zipcode">${memberCommand.zipcode}&nbsp;${memberCommand.addr1}</div>
					<label for="addr2">상세주소</label>
					<div id="addr2">${memberCommand.addr2}</div>
				</div>
				<div class="reportFooter form-group col-lg-12 text-center">
					<c:if test="${memberCommand.grade!=9 }">
						<button type="button" class="btn btn-warning reportBtns" onclick="adminMember(this.id)" id="${memberCommand.id }">&nbsp;&nbsp;탈퇴&nbsp;&nbsp;</button>
					</c:if>
					<button type="button" class="btn btn-default reportBtns" onclick="self.close()">&nbsp;&nbsp;닫기&nbsp;&nbsp;</button>
				</div>
			</div>
		</div>
	</div>
		
		
		
		
		
		
</body>
</html>